//
//  FlutterPluginDemoViewFactory.swift
//  ivy_ezviz_plugin
//
//  Created by 崔兴瑞 on 2020/12/29.
//

import Foundation


class EzvizUIKitViewFactory: NSObject, FlutterPlatformViewFactory {
    var registrar:FlutterPluginRegistrar
    init(registrar:FlutterPluginRegistrar){
        self.registrar = registrar
    }
    func create(withFrame frame: CGRect, viewIdentifier viewId: Int64, arguments args: Any?) -> FlutterPlatformView {
        EzvizUIKitView(frame, viewId: viewId, args: args,registrar:registrar)
    }

    func createArgsCodec() -> FlutterMessageCodec & NSObjectProtocol {
        FlutterStandardMessageCodec.sharedInstance()
    }
}
